<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>日期框按钮 - jQuery EasyUI 演示</title>
	<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
	<link rel="stylesheet" type="text/css" href="../demo.css">
	<script type="text/javascript" src="../../jquery.min.js"></script>
	<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
	<script type="text/javascript" src="../../locale/easyui-lang-zh_CN.js"></script>
</head>
<body>
	<h2 title="DateBox Buttons">日期框按钮</h2>
	<p title="This example shows how to customize the datebox buttons underneath the calendar.">　　本例展示如何自定义日历底部的日期框按钮。</p>
	<div class="easyui-panel" style="width:100%;max-width:250px;padding:10px 20px;">
		<div style="margin-bottom:10px">
			<input class="easyui-datebox" label="日期 <sup onclick='alert(title)' title='左【今天】，右【关闭】！'>俩按钮</sup>：" labelPosition="left" labelWidth="100" labelAlign="right" style="width:100%;">
		</div>
		<div style="margin-bottom:0px">
			<input class="easyui-datebox" label="日期 <sup onclick='alert(title)' title='中间多了个【自定义】哦！'>仨按钮</sup>：" labelPosition="left" labelWidth="100" labelAlign="right" data-options="buttons:buttons" style="width:100%;">
		</div>
	</div>
	<script>
		var buttons = $.extend([], $.fn.datebox.defaults.buttons);
		buttons.splice(1, 0, {text: '自定义', handler: function(target){alert('您点击了【'+this.text+'】哦！');}});
	</script>
</body>
</html>